package domain.entity;

import java.util.Date;
import java.util.List;


public class User {

    private Long id;
    private String userName;
    private String name;
    private Date brithday;
    private Integer age;


    private Role role;
    private List<Role> roleList;

    public User() {
    }

    public User(Long id, String userName, String name, Date brithday, Integer age) {
        this.id = id;
        this.userName = userName;
        this.name = name;
        this.brithday = brithday;
        this.age = age;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBrithday() {
        return brithday;
    }

    public void setBrithday(Date brithday) {
        this.brithday = brithday;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public List<Role> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<Role> roleList) {
        this.roleList = roleList;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", name='" + name + '\'' +
                ", brithday=" + brithday +
                ", age=" + age +
                ", roleList=" + roleList +
                '}';
    }
}
